<h2><?php print $header?></h2>
<p>Todo</p>
<ul>
	<li>Beim Anlegen einer neuen Webseite muss auch die Kategorie Standard gesetzt werden. (INSERT INTO `category` ( `id` , `language_id` , `website_id` , `name` , `description` , `lft` , `rgt` , `url_title` )
VALUES (
'0', '1', '<website_id>', 'Standard', 'Standardkategorie', '1', '2', 'standard'
))</li>
	<li>Beim Anlegen einer neuen Webseite m&uuml;ssen noch manuell Ordner angelegt werden:
		<ul>
			<li>unter views/template</li>
			<li>unter template</li>
			<li>unter uploads</li>
		</ul>
	</li>
	<li>INSERT INTO `region` ( `id` , `website_id` , `region` , `default` )
VALUES (
NULL , '', 'body', ''
);
	</li>
</ul>
<div class="buttons">                
	<a href="<?php print site_url( 'article/admin/website/form' )?>">
    <?php print $this->bep_assets->icon( 'add' );?>
    <?php print $this->lang->line( 'create_website' )?>
    </a>
</div>
<br />
<br />
<?php print form_open('article/admin/website/delete')?>
<table class="data_grid" cellspacing="0">
    <thead>
        <tr>
            <th width=5%><?php print $this->lang->line( 'website_id' )?></th>
            <th><?php print $this->lang->line( 'website_title' )?></th>
            <th width=5% class="middle"><?php print $this->lang->line( 'website_active' )?></th> 
            <th width=5% class="middle"><?php print $this->lang->line( 'website_edit' )?></th>
            <th width=5% class="middle"><?php print $this->lang->line( 'website_manage' )?></th>
            <th width=10%><?php print form_checkbox( 'all', 'select', FALSE)?><?php print $this->lang->line( 'website_delete' )?></th>        
        </tr>
    </thead>
    <tfoot>
        <tr>
            <td colspan=5>&nbsp;</td>
            <td><?php print form_submit( 'delete', $this->lang->line( 'website_delete' ), 'onClick="return confirm(\''.$this->lang->line('website_delete_confirm').'\');"')?></td>
        </tr>
    </tfoot>
    <tbody>
        <?php foreach( $websites->result_array( ) as $row ){ ?>
        <tr>
            <td><?php print $row['id']?></td>
            <td><?php print $row['name']?></td>
            <td class="middle"><?php print $row['active']?$this->bep_assets->icon( 'tick' ):$this->bep_assets->icon( 'cross' )?></td> 
            <td class="middle"><a href="<?php print site_url('article/admin/website/form/'.$row['id'])?>"><?php print $this->bep_assets->icon( 'pencil' ); ?></a></td>
            <td class="middle"><a href="<?php print site_url('article/admin/website/manage/'.$row['id'])?>"><?php print $this->bep_assets->icon( 'pencil' ); ?></a></td>
            <td><?php print form_checkbox( 'select[]', $row['id'], FALSE ); ?></td>
        </tr>
        <?php } //foreach ?>
    </tbody>
</table>
<?php print form_close()?>